import config from 'config'
import httpFetch from 'share/httpFetch'

let realmId = config.realmIds[location.host] || config.realmId;

export default {
  checkAll(userOID, page, size) {
    return httpFetch.post(`${config.baseUrl}/api/greencode/check/all?userOID=${userOID}&page=${page}&size=${size}`)
  },
  checkOne(option, userOID, page, size) {
    return httpFetch.post(`${config.baseUrl}/api/greencode/check/one/${option}?userOID=${userOID}&page=${page}&size=${size}`)
  },
  getCheckOptions(){
    return httpFetch.get(`${config.baseUrl}/api/greencode/check/options`)
  }

}
